package com.summer.user.center.config;

import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisConfig {

    public ConfigurationCustomizer configurationCustomizer(){
        return new ConfigurationCustomizer() {
            @Override
            public void customize(org.apache.ibatis.session.Configuration configuration) {
                //mybatis注解上写sql时,返回值映射启用驼峰命名法
                configuration.setMapUnderscoreToCamelCase(true);
            }
        };
    }
}
